/**
 * 标签表
 * Created by Freeman on 2016/6/27.
 */
"use strict";



var mongoose = require('./mongoosedb').mongoose;

var Schema = mongoose.Schema;

var TagCategorySchema = new Schema({
    name:{
        type:String,
        unique:true
    },
    desc:String,
});

var TagCategory = mongoose.model('TagCategory',TagCategorySchema);


var Promise = require('bluebird');
Promise.promisifyAll(TagCategory);
Promise.promisifyAll(TagCategory.prototype);

module.exports = TagCategory;


